from web.Script.movie_555_1 import Script as yymovie_555movie1

api = yymovie_555movie1.Script()


# 返回全部数据
def IndexAll():
    try:
        return api.GetIndexMovieData()
    except Exception as e:
        return ""


# 获取影视的详情数据
def GetMovieInfo(movie_url):
    try:
        return api.GetMovieInfo(movie_url=movie_url)
    except Exception as e:
        return ""


# 获取影视的播放信息、m3u8链接等
def GetMoviePlayInfo(movie_url):
    try:
        return api.GetMoviePlayInfo(movie_url=movie_url)
    except Exception as e:
        return ""


# 根据分页获取数据, 请注意参数
def GetMovieMore(movie_type, page):
    try:
        return api.GetMovieMore(movie_type=movie_type, page=page)
    except Exception as e:
        return ""


# 搜索影视：根据片名搜索、根据人物名字搜索
def SesrchMovie(wd, movie_type=1):
    try:
        return api.SesrchMovie(wd, movie_type=movie_type)
    except Exception as e:
        return ""
